<!DOCTYPE html>
<html>
  <head>
    <title>详情</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />

    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
    crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
    crossorigin="anonymous">

   
    <style>
    </style>

  </head>
  <body>
      <%- include header %>


    <div class="container marketing">

      <hr class="featurette-divider">

       <% movieDetail.result.forEach(function(item,index){%>
      <div class="row featurette">
        <div class="col-md-7 col-md-push-5">
          <h2 class="featurette-heading"><%= item.title %><span class="text-muted"><%= item.year %></span></h2>
          <p class="lead"><%= item.summary %></p>
        </div>
        <div class="col-md-5 col-md-pull-7">
          <img class="featurette-image img-responsive center-block" src="<%= item.images.large %>" alt="<%= item.alt %>">
        </div>
      </div>

      <hr class="featurette-divider">
      <% }) %>

    <form action="/comment/submit" method="post">
      <div class="form-group">
        <label for="exampleInputEmail1">标题</label>
        <input type="text" class="form-control" id="exampleInputEmail1" placeholder="标题" name="title">
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1">内容</label>
        <textarea class="form-control" rows="8" name="content" id="content" ></textarea>
      </div>
      <button type="submit" class="btn btn-default">评论</button>
    </form>
    
    <hr class="featurette-divider">
    <% movieDetail.results.forEach(function(item,index){%>
      <blockquote>
        <header><%= item.title %></header>
        <p style=><%- item.content %></p>
        <footer><cite title="Source Title">王</cite></footer>
      </blockquote>
    <% }) %>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
  crossorigin="anonymous"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});
    $('#content').xheditor({
      html5Upload:false,
      upMultiple:"1",
      
      upLinkUrl:"upload.php",
      upLinkExt:"zip,rar,txt",
      
      upImgUrl:"/uploadImg",
      upImgExt:"jpg,jpeg,gif,png",
      
      upFlashUrl:"upload.php",
      upFlashExt:"swf",
      
      upMediaUrl:"upload.php",
      upMediaExt:"wmv,avi,wma,mp3,mid"
    });

}

function insertUpload(arrMsg)
{console.log(arrMsg)
	var i,msg;
	for(i=0;i<arrMsg.length;i++)
	{
		msg=arrMsg[i];
		$("#uploadList").append('<option value="'+msg.id+'">'+msg.localname+'</option>');
	}
}
function submitForm(){$('#frmDemo').submit();}


</script>
 <script type="text/javascript" src="/javascripts/xheditor/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="/javascripts/xheditor/xheditor-1.2.2.min.js"></script>
    <script type="text/javascript" src="/javascripts/xheditor/xheditor_lang/zh-cn.js"></script>
  </body>
</html>
